import request from '../../utils/request';

export const getPage = (query) => {
    return request({
        url: '/mallOrder/getPage',
        method: 'post',
        data: query
    })
}

export const cancelStatus = (query) => {
    return request({
        url: '/mallOrder/cancelStatus',
        method: 'post',
        data: query
    })
}

export const getInfo = (query) => {
    return request({
        url: '/mallOrder/get/'+query,
        method: 'post',
        data: query
    })
}

export const updateReceivingInfo = (query) => {
    return request({
        url: '/mallOrder/updateReceivingInfo',
        method: 'post',
        data: query
    })
}

export function downloadFile(url, params, loadingOptions){
    if (dev) {
        url = "/local/" + url.substring(1);
    }
    window.open( url);
}

